.class public Lcom/waiqin365/lightapp/im/a/b;
.super Ljava/lang/Thread;


# instance fields
.field private a:Landroid/os/Handler;

.field private b:Lcom/waiqin365/lightapp/im/a/c;

.field private c:Lcom/waiqin365/lightapp/im/a/d;


# direct methods
.method public constructor <init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/im/a/c;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/a/b;->a:Landroid/os/Handler;

    iput-object p2, p0, Lcom/waiqin365/lightapp/im/a/b;->b:Lcom/waiqin365/lightapp/im/a/c;

    return-void
.end method

.method private a(Z)V
    .locals 2

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/a/b;->b:Lcom/waiqin365/lightapp/im/a/c;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/a/c;->b()I

    move-result v1

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    iput-object v1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz p1, :cond_1

    const/16 v1, 0x7d1

    iput v1, v0, Landroid/os/Message;->arg1:I

    :goto_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/a/b;->a:Landroid/os/Handler;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/a/b;->a:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :cond_0
    return-void

    :cond_1
    const/16 v1, 0x7d2

    iput v1, v0, Landroid/os/Message;->arg1:I

    goto :goto_0
.end method


# virtual methods
.method public run()V
    .locals 3

    const/4 v1, 0x0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->b:Lcom/waiqin365/lightapp/im/a/c;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/im/a/a;->a(Lcom/waiqin365/lightapp/im/a/c;Z)Lcom/waiqin365/lightapp/im/a/d;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/a/d;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/a/b;->a(Z)V

    :goto_0
    return-void

    :cond_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/a/b;->b:Lcom/waiqin365/lightapp/im/a/c;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/im/a/d;->b:Z

    :goto_1
    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/im/a/a;->a(Lcom/waiqin365/lightapp/im/a/c;Z)Lcom/waiqin365/lightapp/im/a/d;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/b;->c:Lcom/waiqin365/lightapp/im/a/d;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/a/d;->b()Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/a/b;->a(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-direct {p0, v1}, Lcom/waiqin365/lightapp/im/a/b;->a(Z)V

    goto :goto_0

    :cond_1
    move v0, v1

    goto :goto_1

    :cond_2
    const/4 v0, 0x0

    :try_start_1
    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/a/b;->a(Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method
